package com.zhongyu.pojo;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class OrderDetail {

	@TableId
	private Integer id;

	/**
	 * 商品id
	 */
	private Integer goodsId;

	/**
	 * 商品名称
	 */
	private String goodsName;

	/**
	 * 售价
	 */
	private Double price;

	/**
	 * 数量
	 */
	private Integer num;

	/**
	 * 小计
	 */
	private Double money;

	/**
	 * 结束日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	private java.time.LocalDateTime endTime;

	/**
	 * 库管员ID
	 */
	private Integer stockKeeper;

	/**
	 * 仓库ID
	 */
	private Integer storehouseId;

	/**
	 * 采购：0=未入库，1=已入库  销售：0=未出库，1=已出库
	 */
	private Integer state;

	/**
	 * 订单编号
	 */
	private Integer orderId;

	@TableField(exist = false)
	private  CangkuKucun cangkuKucun;
	@TableField(exist = false)
	private  KucunBiandong kucunBiandong;
	@TableField(exist = false)
	private  Order order;

	//private String  month;
	//private Double totalmoney;
}
